package dkmvp.application;


import android.app.Application;

/**
 * 单例模式
 * 保证进程中只有一个实例，减少内存消耗
 */

public class RxApplication extends Application {

    private static RxApplication sInstance;

    @Override
    public void onCreate() {
        super.onCreate();
        sInstance = this;
    }

    public synchronized static  RxApplication getInstance(){
        return sInstance;
    }
}
